import { requestClient } from '#/api/request';

/**
 * 获取尺码组列表
 */
export async function getSizeGroupList(params: any) {
  return requestClient.get('/admin/SizeGroup/index', params);
}

/**
 * 尺码组添加
 */
export async function doSizeGroupAdd(params: any) {
  return requestClient.post('/admin/SizeGroup/add', params);
}

/**
 * 尺码组编辑
 */
export async function doSizeGroupEdit(params: any) {
  return requestClient.post('/admin/SizeGroup/edit', params);
}

/**
 * 尺码组删除
 */
export async function doSizeGroupDelete(params: any) {
  return requestClient.post('/admin/SizeGroup/del', params);
}

/**
 * 尺码组详情
 */
export async function doSizeGroupInfo(params: any) {
  return requestClient.get('/admin/SizeGroup/edit', params);
}

/**
 * 切换状态
 */
export async function doSizeGroupToggleStatus(params: any) {
  return requestClient.post('/admin/SizeGroup/edit', params);
}

/**
 * 获取尺码列表
 */
export async function getSizeList(params: any) {
  return requestClient.get('/admin/Size/index', params);
}

/**
 * 尺码添加
 */
export async function doSizeAdd(params: any) {
  return requestClient.post('/admin/Size/add', params);
}

/**
 * 尺码编辑
 */
export async function doSizeEdit(params: any) {
  return requestClient.post('/admin/Size/edit', params);
}

/**
 * 尺码删除
 */
export async function doSizeDelete(params: any) {
  return requestClient.post('/admin/Size/del', params);
}

/**
 * 尺码详情
 */
export async function doSizeInfo(params: any) {
  return requestClient.get('/admin/Size/edit', params);
}

/**
 * 尺码排序
 */
export async function doSizeSortable(params: any) {
  return requestClient.post('/admin/Size/sortable', params);
}
